#include "imagesettest.h"
#include "../imageset.h"

#include "boost/foreach.hpp"
#include "../inputimage.h"
#include <iostream>

using namespace std;
using namespace cshotel;
using namespace boost;
using namespace cv;

void ImageSetTest::setUp() {

}

void ImageSetTest::tearDown() {

	delete imageset;

}

void ImageSetTest::testAddImage() {
	
	imageset = new ImageSet();
	string s = "test.jpg";
	int cols = 100000, rows = 1000000000;
	string matchingVersionFileName = "test_resized.jpg";
	double scaleFactor = 1.0;
	int counter = 0;
	
	shared_ptr<InputImage> newImage(new InputImage(s, Size2i(cols, rows), matchingVersionFileName, scaleFactor, counter));
	CPPUNIT_ASSERT_NO_THROW	( imageset->addImage(newImage) );
//	cout << "minX: " << imageset->getBoundingBox().minX << endl;
//	cout << "minY: " << imageset->getBoundingBox().minY << endl;	
//	cout << "height: " << imageset->getBoundingBox().height << endl;
//	cout << "width: " << imageset->getBoundingBox().width << endl;
}
